package com.example.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UpdateUserRequest {
    @Size(min = 3, max = 20, message = "用户名长度必须在3到20个字符之间")
    private String username;
    
    @Email(message = "邮箱格式不正确")
    @Size(max = 50, message = "邮箱长度不能超过50个字符")
    private String email;
    
    @Size(max = 40, message = "密码长度不能超过40个字符")
    private String password;
    
    @Size(max = 100, message = "全名长度不能超过100个字符")
    private String fullName;
    
    @Size(max = 20, message = "电话号码长度不能超过20个字符")
    private String phoneNumber;
    
    @Size(max = 12, message = "考试编号长度不能超过12个字符")
    private String examNumber;
}